﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsChap" targetNamespace="http://tempuri.org/dsChap.xsd" xmlns:mstns="http://tempuri.org/dsChap.xsd" xmlns="http://tempuri.org/dsChap.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="dynamicConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="dynamicConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.frm_view.Properties.Settings.GlobalReference.Default.dynamicConnectionString" Provider="Microsoft.SqlServerCe.Client.4.0" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblChuongTableAdapter" GeneratorDataComponentClassName="tblChuongTableAdapter" Name="tblChuong" UserDataComponentName="tblChuongTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="dynamicConnectionString (Settings)" DbObjectName="tblChuong" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [tblChuong] WHERE (([MaChuong] = @Original_MaChuong) AND ([TenChuong] = @Original_TenChuong))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MaChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaChuong" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TenChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenChuong" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [tblChuong] ([MaMH], [MaChuong], [TenChuong], [NoiDung], [Video]) VALUES (@MaMH, @MaChuong, @TenChuong, @NoiDung, @Video)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MaChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaChuong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TenChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenChuong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NoiDung" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NoiDung" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Video" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Video" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT [MaMH], [MaChuong], [TenChuong], [NoiDung], [Video] FROM [tblChuong]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [tblChuong] SET [MaMH] = @MaMH, [MaChuong] = @MaChuong, [TenChuong] = @TenChuong, [NoiDung] = @NoiDung, [Video] = @Video WHERE (([MaChuong] = @Original_MaChuong) AND ([TenChuong] = @Original_TenChuong))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MaChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaChuong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TenChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenChuong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NoiDung" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NoiDung" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Video" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Video" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MaChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaChuong" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TenChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenChuong" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MaMH" DataSetColumn="MaMH" />
              <Mapping SourceColumn="MaChuong" DataSetColumn="MaChuong" />
              <Mapping SourceColumn="TenChuong" DataSetColumn="TenChuong" />
              <Mapping SourceColumn="NoiDung" DataSetColumn="NoiDung" />
              <Mapping SourceColumn="Video" DataSetColumn="Video" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="dynamicConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="DeleteQuery">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM [tblChuong] WHERE [MaChuong] = @Original_MaChuong</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Original_MaChuong" ColumnName="MaChuong" DataSourceName="tblChuong" DataTypeServer="nvarchar(20)" DbType="String" Direction="Input" ParameterName="@Original_MaChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumn="MaChuong" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
              </DbSource>
              <DbSource ConnectionRef="dynamicConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="UpdateQuery">
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE [tblChuong] SET [MaMH] = @MaMH, [MaChuong] = @MaChuong, [TenChuong] = @TenChuong, [NoiDung] = @NoiDung, [Video] = @Video WHERE (([MaChuong] = @Original_MaChuong))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="MaMH" ColumnName="MaMH" DataSourceName="tblChuong" DataTypeServer="nvarchar(20)" DbType="String" Direction="Input" ParameterName="@MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="MaChuong" ColumnName="MaChuong" DataSourceName="tblChuong" DataTypeServer="nvarchar(20)" DbType="String" Direction="Input" ParameterName="@MaChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumn="MaChuong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="TenChuong" ColumnName="TenChuong" DataSourceName="tblChuong" DataTypeServer="nvarchar(250)" DbType="String" Direction="Input" ParameterName="@TenChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumn="TenChuong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NoiDung" ColumnName="NoiDung" DataSourceName="tblChuong" DataTypeServer="nvarchar(250)" DbType="String" Direction="Input" ParameterName="@NoiDung" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumn="NoiDung" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Video" ColumnName="Video" DataSourceName="tblChuong" DataTypeServer="nvarchar(250)" DbType="String" Direction="Input" ParameterName="@Video" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumn="Video" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Original_MaChuong" ColumnName="MaChuong" DataSourceName="tblChuong" DataTypeServer="nvarchar(20)" DbType="String" Direction="Input" ParameterName="@Original_MaChuong" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumn="MaChuong" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblMonHocTableAdapter" GeneratorDataComponentClassName="tblMonHocTableAdapter" Name="tblMonHoc" UserDataComponentName="tblMonHocTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="dynamicConnectionString (Settings)" DbObjectName="tblMonHoc" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [tblMonHoc] WHERE (([MaMH] = @Original_MaMH))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [tblMonHoc] ([MaMH]) VALUES (@MaMH)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT [MaMH] FROM [tblMonHoc]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [tblMonHoc] SET [MaMH] = @MaMH WHERE (([MaMH] = @Original_MaMH))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MaMH" DataSetColumn="MaMH" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsChap" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsChap" msprop:Generator_UserDSName="dsChap">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="tblChuong" msprop:Generator_TableClassName="tblChuongDataTable" msprop:Generator_TableVarName="tabletblChuong" msprop:Generator_TablePropName="tblChuong" msprop:Generator_RowDeletingName="tblChuongRowDeleting" msprop:Generator_RowChangingName="tblChuongRowChanging" msprop:Generator_RowEvHandlerName="tblChuongRowChangeEventHandler" msprop:Generator_RowDeletedName="tblChuongRowDeleted" msprop:Generator_UserTableName="tblChuong" msprop:Generator_RowChangedName="tblChuongRowChanged" msprop:Generator_RowEvArgName="tblChuongRowChangeEvent" msprop:Generator_RowClassName="tblChuongRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MaMH" msprop:Generator_ColumnVarNameInTable="columnMaMH" msprop:Generator_ColumnPropNameInRow="MaMH" msprop:Generator_ColumnPropNameInTable="MaMHColumn" msprop:Generator_UserColumnName="MaMH">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaChuong" msprop:Generator_ColumnVarNameInTable="columnMaChuong" msprop:Generator_ColumnPropNameInRow="MaChuong" msprop:Generator_ColumnPropNameInTable="MaChuongColumn" msprop:Generator_UserColumnName="MaChuong">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenChuong" msprop:Generator_ColumnVarNameInTable="columnTenChuong" msprop:Generator_ColumnPropNameInRow="TenChuong" msprop:Generator_ColumnPropNameInTable="TenChuongColumn" msprop:Generator_UserColumnName="TenChuong">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="250" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NoiDung" msprop:Generator_ColumnVarNameInTable="columnNoiDung" msprop:Generator_ColumnPropNameInRow="NoiDung" msprop:Generator_ColumnPropNameInTable="NoiDungColumn" msprop:Generator_UserColumnName="NoiDung" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="250" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Video" msprop:Generator_ColumnVarNameInTable="columnVideo" msprop:Generator_ColumnPropNameInRow="Video" msprop:Generator_ColumnPropNameInTable="VideoColumn" msprop:Generator_UserColumnName="Video" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="250" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="tblMonHoc" msprop:Generator_TableClassName="tblMonHocDataTable" msprop:Generator_TableVarName="tabletblMonHoc" msprop:Generator_TablePropName="tblMonHoc" msprop:Generator_RowDeletingName="tblMonHocRowDeleting" msprop:Generator_RowChangingName="tblMonHocRowChanging" msprop:Generator_RowEvHandlerName="tblMonHocRowChangeEventHandler" msprop:Generator_RowDeletedName="tblMonHocRowDeleted" msprop:Generator_UserTableName="tblMonHoc" msprop:Generator_RowChangedName="tblMonHocRowChanged" msprop:Generator_RowEvArgName="tblMonHocRowChangeEvent" msprop:Generator_RowClassName="tblMonHocRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MaMH" msprop:Generator_ColumnVarNameInTable="columnMaMH" msprop:Generator_ColumnPropNameInRow="MaMH" msprop:Generator_ColumnPropNameInTable="MaMHColumn" msprop:Generator_UserColumnName="MaMH">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1">
      <xs:selector xpath=".//mstns:tblChuong" />
      <xs:field xpath="mstns:TenChuong" />
    </xs:unique>
    <xs:unique name="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblChuong" />
      <xs:field xpath="mstns:MaChuong" />
    </xs:unique>
    <xs:unique name="tblMonHoc_Constraint2" msdata:ConstraintName="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblMonHoc" />
      <xs:field xpath="mstns:MaMH" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="tblMonHoc_tblChuong" msdata:parent="tblMonHoc" msdata:child="tblChuong" msdata:parentkey="MaMH" msdata:childkey="MaMH" msprop:Generator_UserChildTable="tblChuong" msprop:Generator_ChildPropName="GettblChuongRows" msprop:Generator_UserRelationName="tblMonHoc_tblChuong" msprop:Generator_RelationVarName="relationtblMonHoc_tblChuong" msprop:Generator_UserParentTable="tblMonHoc" msprop:Generator_ParentPropName="tblMonHocRow" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>